package com.bw.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bw.bean.Classes;
import org.springframework.stereotype.Service;

import com.bw.bean.Classes;
import com.bw.bean.ViewVo;
import com.bw.dao.ClassesDao;
import com.bw.dao.ClassesDao;
import com.bw.service.ClassesService;
@Service
public class ClassesServiceImpl implements ClassesService {
	@Autowired
	private ClassesDao classesDaoImpl;
	@Autowired
	ClassesDao classesDao;
	
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int insert(Classes record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int insertSelective(Classes record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public Classes selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	public int updateByPrimaryKeySelective(Classes record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int updateByPrimaryKey(Classes record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public List getClassMessage(int i,String name) {
		// TODO Auto-generated method stub
		return classesDao.getClassMessage(i,name);
	}

	public List<Classes> list() {
		// TODO Auto-generated method stub
		return classesDaoImpl.list();
	}

	public List<ViewVo> myChart(int i, int cid, String s, String e) {
		// TODO Auto-generated method stub
		String ziduan = null;
		List<ViewVo> myChart = null;
		if(i==1){
			 myChart = classesDaoImpl.myChart(cid, s, e);
		}else {
			myChart = classesDaoImpl.zhenDuan(cid, s, e);
		}
		return myChart;
	}

}
